import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {LayoutComponent} from './shared/layout/layout.component';
import {IndexComponent} from './shared/index/index.component';

const routes: Routes = [
  {
    path: '', component: LayoutComponent, children: [
      {path: '', component: IndexComponent}
    ]
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule {
}
